// translate router.meta.title, be used in breadcrumb sidebar tagsview
export function generateTitle(title) {
    const hasKey = this.$te( title)
    const translatedTitle = this.$t( title) // $t :this method from vue-i18n, inject in @/lang/index.js
    if (hasKey) {
        return translatedTitle
    }
    return title
}
export function generateSkinColor(color) {
    const hasKey = this.$te('skin.' + color)
    const translatedTitle = this.$t('skin.' + color) // $t :this method from vue-i18n, inject in @/lang/index.js

    if (hasKey) {
        return translatedTitle
    }
    return color
}
